package bos.web.action;

import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionContext;

import bos.domain.Workordermanage;
import bos.web.action.base.BaseAction;
/**
 * 
 * @author lin819747263
 *
 */
@Controller
@Scope("prototype")
public class WorkordermanageAction extends BaseAction<Workordermanage> {
	public String add(){
		workordermanageService.save(model);
		return NONE;
	}
	
public String list(){
	List<Workordermanage> list=workordermanageService.findListNotStart();
	
	ActionContext.getContext().getValueStack().set("list", list);
	return "list";
}
public String start(){
	String id=model.getId();
	workordermanageService.start(id);
	
	return "toList";
}


}
